package com.itheima.guozi2;
/*
将desk类中原来 public  static
优化成 private
 */
public class Desk {

    //描述 煎饼的状态
    //布尔 有或没有
    private   boolean flag=false;
    //int  上限
    private  int count=10;
    //锁对象
    private  final Object obj= new Object();

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Object getObj() {
        return obj;
    }
}
